<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
 <%
 	String path = request.getContextPath();
 	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 	%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<LINK rel=stylesheet type=text/css href="<%=path%>/css/style.css">
       <title><decorator:title default="welcome!" />
       </title>
    </head>
    <body>
    <div><%if(session.getAttribute("userName")==null){ 
     %>
    <table  border=0 cellSpacing=0 cellPadding=0 width=900 align=center background="<%=path %>/images/foot_19.gif" >
    <tr>
    <td colspan="2">
    <!--顶部菜单区域-->
    	<jsp:include page="header.jsp"></jsp:include>
    	</td>
    </tr>
    <tr>
    <td width="225" valign="top">
    <!--左边竖导航-->
    	<jsp:include page="leftMenu.jsp"></jsp:include>
    </td>
    <td align="left" valign="top">
        <!--右边主内容区域-->
        <decorator:body />
     </td>
     </tr>
     <tr>
        <!--底步区域-->
    	<jsp:include page="foot.jsp"></jsp:include>
    </tr>
    </table>
    <%}else{ %>
    <table  border=0 cellSpacing=0 cellPadding=0 width=900 align=center background="<%=path %>/images/foot_19.gif" >
    <tr>
    <td colspan="2">
    <!--顶部菜单区域-->
    	<jsp:include page="header.jsp"></jsp:include>
    	</td>
    </tr>
    <tr>
    <td width="225" valign="top">
    <!--左边竖导航-->
    	<table>
    		<tr>
    			<td><a href="CompanyServlet.do?method=load">公司信息维护</a></td>
    		</tr>
    		<tr>
    			<td><a href="KnowledgeServlet.do?method=list">常识信息维护</a></td>
    		</tr>
    		<tr>
    			<td><a href="ServiceServlet.do?method=list">服务信息维护</a></td>
    		</tr>
    		<tr>
    			<td><a href="MessageServlet.do?method=list">留言信息维护</a></td>
    		</tr>
    		<tr>
    			<td><a href="UserServlet.do?method=logout">退出登录</a></td>
    		</tr>
    	</table>
    </td>
    <td align="left" valign="top">
        <!--右边主内容区域-->
        <decorator:body />
     </td>
     </tr>
     <tr>
        <!--底步区域-->
    	<jsp:include page="foot.jsp"></jsp:include>
    </tr>
    </table>
    <%} %>
    </div>
    </body>
</html>

